home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_982 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  433 b   |  18 lines

  1. on(release){
  2.    if(_root.magRune >= 3 && _root.windRune >= 3 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 3;
  5.       _root.windRune -= 3;
  6.       this.timey.timer = 0;
  7.       this.timey.timeIt = 2;
  8.       this.timey._visible = true;
  9.       _root.swordpower = random(3) + 1;
  10.       _root.summonsword._visible = true;
  11.       _root.summonsword.play();
  12.    }
  13.    else
  14.    {
  15.       _root.messy = "Not enough Runes";
  16.    }
  17. }
  18.